<layout name='layout_page' />

<div class="row">
	<div class="col-lg-12">
		<div class="row">
			<div class="col-lg-12">
				<ol class="breadcrumb">
					<li><a href="<{:U('Index/index')}>">Home</a></li>
					<li class="active"><span>Appointment</span></li>
				</ol>
				<h1>Appointment</h1>
			</div>
		</div>

		<div class="row">
			<div class="col-lg-12">
				<div class="main-box clearfix">
					<form id="ajaxForm" action="<{:U('Message/alldel',array('type'=>'inbox'))}>" method="post" class="form-horizontal form-validata">
					<input type="hidden" name="type" value="inbox"/>
					<header class="main-box-header clearfix">
						<div class="filter-block pull-left">	
							<a href="<{:U('Appointment/index')}>" class="btn btn-primary">Inbox</a>
							<a href="<{:U('Appointment/sendbox')}>" class="btn btn-default">Sent</a>	
						</div>
					</header>
					<div class="main-box-body clearfix">
						<div class="table-responsive clearfix">
							<table class="table user-list table-hover">
								<thead>
									<tr>
										<th width="150">From</th>
										<th>content</th>
										<th class="text-center" width="150"><span>Time</span></th>
										<th width="50">status</th>
										<th class="text-center" width="130"><span>active</span></th>
									</tr>
								</thead>
								<tbody>
									<volist name="list" id="vo">
									<tr>
										<td><{$vo.fromName}></td>
										<td><{$vo.content|msubstr=0,150}></td>
										<td class="text-center"><{$vo.time|date="F,d,Y",###}></td>
										<td class="text-center"><if condition="$vo['status'] eq 0"><span class="label label-primary">News</span><elseif condition="$vo['status'] eq 1"/><span class="label label-success">Accept</span><elseif condition="$vo['status'] eq 2"/><span class="label label-default">Readed</span><else/><span class="label label-danger">Reject</span></if>
										</td>
										<td class="text-center">
										<a href="<{:U('Appointment/edit',array('id'=>$vo['id']))}>" class="table-link"> <span class="fa-stack"> <i class="fa fa-square fa-stack-2x"></i> <i class="fa fa-search-plus fa-stack-1x fa-inverse"></i> </span> </a> 
										<neq name="vo.status" value="1">
											<a href="<{:U('Appointment/del',array('id'=>$vo['id']))}>" class="table-link danger"> <span class="fa-stack"> <i class="fa fa-square fa-stack-2x"></i> <i class="fa fa-trash-o fa-stack-1x fa-inverse"></i> </span> </a>
										</neq>
										</td>
									</tr>
									</volist>									
								</tbody>
							</table>
						</div>
					</div>
					</form>
				</div>
			</div>
		</div>


	

		<div class="row">
			<div class="col-md-12">
				<div class="page">
					<nav>
	  					<ul class="pagination"><{$page}></ul>
	  				</nav>
	  			</div>
			</div>
		</div>	
	</div>
</div>